import Vue from 'vue'
import VueRouter from 'vue-router'
import goodsList from '@/views/MyGoodsList'
import Search from '@/views/MyGoodsSearch'
import UserInfo from '@/views/MyUserInfo'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        redirect: '/MyGoodsList',
    },
    {
        path: '/MyGoodsList',
        name: 'goodslist',
        component: goodsList,
    },
    {
        path: '/MyGoodsSearch',
        name: 'Search',
        component: Search,
    },
    {
        path: '/MyUserInfo',
        name: 'UserInfo',
        component: UserInfo,
    },
]

const router = new VueRouter({
    routes,
})

export default router
